# Maintainer: BlackEagle < ike DOT devolder AT gmail DOT com >

pkgname=python-gflags
pkgver=3.1.2
pkgrel=8
pkgdesc="Commandline flags module for Python"
arch=('any')
url="https://github.com/google/python-gflags"
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/google/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('f1692c79ccf4a55d13895dcd195f0db1ebd55c71024b431ec953703b38d73f96')

build() {
    cd ${pkgname}-${pkgver}
    python setup.py build
}

package() {
  cd ${pkgname}-${pkgver}
  python setup.py install --root="${pkgdir}"
  chmod +x "${pkgdir}"/usr/bin/gflags2man.py
  #chmod +r "${pkgdir}"/* -R
  #install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
  install -Dm644 AUTHORS "${pkgdir}"/usr/share/licenses/${pkgname}/AUTHORS
  install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
}
